package simbot.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import simbot.example.demo.serializer.JsonDateSerializer;

import java.util.List;


/**
 * @author kali
 * @date 2020/3/14
 */
@Data
@TableName(value = "tb_user")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long qq;

    @TableField(value = "open_id")
    private String openId;

    @TableField(value = "channel_id")
    private Long channelId;

    @TableField(value = "name")
    private String name;

    @TableField(value = "password")
    private String password;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "head")
    private String head;

    //性别 （1：男，2：女）
    @TableField(value = "gender")
    private Integer gender;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "email")
    private String email;

    @TableField(value = "birthday")
    private String birthday;

    @TableField(value = "parent_id")
    private long parentId;

    @TableField(value = "create_time")
    @JsonSerialize(using = JsonDateSerializer.class)
    private long createTime;

    @TableField(value = "update_time")
    @JsonSerialize(using = JsonDateSerializer.class)
    private long updateTime;

    @TableField(value = "wx_qrcode")
    private String wxQrcode;

    @TableField(value = "shopper_qrcode")
    private String shopperQrcode;

    @TableField(value = "live_qrcode")
    private String liveQrcode;

    @TableField(value = "profile")
    private String profile;

    @TableField(value = "is_member")
    private Integer isMember;

    @TableField(value = "level")
    private long level;

    private String applyId;

    //是否关注
    private Integer isFollowOfficial;

    //微信表
    //国家
    private String country;

    //省份
    private String province;

    //城市
    private String city;



}
